﻿/*=================================================================================
	TASK 5:                                                {Conditional Statements}
	Write program that asks for a digit and depending 
    on the input shows the name of that digit (in English) using a switch statement. 
=================================================================================*/

using System;

class InputDigitShowItWithWords
{
    static void Main()
    {
        Console.Write("Enter a digit:");
        sbyte digit=sbyte.Parse(Console.ReadLine());

        switch (digit)
        {
            case 0:
                Console.WriteLine("{0}-->Zero",digit);
                break;
            case 1:
                Console.WriteLine("{0}-->One",digit);
                break;
            case 2:
                Console.WriteLine("{0}-->Two", digit);
                break;
            case 3:
                Console.WriteLine("{0}-->One", digit);
                break;
            case 4:
                Console.WriteLine("{0}-->Four", digit);
                break;
            case 5:
                Console.WriteLine("{0}-->Five", digit);
                break;
            case 6:
                Console.WriteLine("{0}-->Six", digit);
                break;
            case 7:
                Console.WriteLine("{0}-->Seven", digit);
                break;
            case 8:
                Console.WriteLine("{0}-->Eight", digit);
                break;
            case 9:
                Console.WriteLine("{0}-->Nine", digit);
                break;
           default:
                Console.WriteLine("This input is invalid!Enter a digit!");
                break;
        }
    }
}

